<template>
  <section class="banner">
    <div class="banner-inner">
      <h2 class="title">
        <span class="count">
          {{count}}
          <sup>张</sup>
        </span>
        <span class="title-text">{{queryData.title}}</span>
      </h2>
    </div>
  </section>
</template>

<script>
export default {
  name: "BannerInList",
  data() {
    return {
      title: "architecture 下的图片",
      src:require("../assets/images/banner.jpg")
    };
  },
  props: ["count","queryData"],
  created() {
    this.title = this.$route.query.title;
  },
  methods: {

  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="less">
.banner {
  padding-top: 60px;
  color: @white;
  background: url("../assets/images/banner.jpg") center center / cover no-repeat;
  .banner-inner {
    padding: 0 15px;
    max-width: 1380px;
    margin: 0 auto;
  }
  .title {
    text-align: center;
    padding: 0 0 24px;
  }
  .count {
    font-size: 34px;
    margin: 0 auto 16px;
    text-align: center;
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid @white;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    position: relative;
    sup {
      font-size: 12px;
      position: absolute;
      right: 0;
      bottom: 0;
      height: 24px;
      width: 24px;
      line-height: 24px;
      text-align: center;
      &:after {
        content: "";
        position: absolute;
        border-left: 2px solid @white;
        top: -20px;
        bottom: -9px;
        left: 4px;
        transform: rotate(45deg);
      }
    }
  }
  .title-text {
    display: block;
    font-size: 34px;
    margin: 0 auto 8px;
    font-weight: 800;
    text-align: center;
    position: relative;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    &:before {
      content: "";
      position: absolute;
      width: 6em;
      height: 4px;
      background-color: @white;
      left: 50%;
      margin-left: -3em;
      top: -5px;
    }
  }
}
</style>
